* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, rgba(0,0,0,0.04) 0px, rgba(0,0,0,0.04) 1px, transparent 1px, transparent 40px),
        repeating-linear-gradient(90deg, rgba(0,0,0,0.04) 0px, rgba(0,0,0,0.04) 1px, transparent 1px, transparent 40px);
    pointer-events: none;
    z-index: 0;
}

/* 启动界面样式 */
.start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFE5E5 0%, #FFF0F0 50%, #E5F4FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.start-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.start-content {
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

.start-heart {
    font-size: 120px;
    margin-bottom: 30px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.start-text {
    font-size: 36px;
    color: #666;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.start-hint {
    font-size: 18px;
    color: #999;
    font-weight: 400;
    letter-spacing: 1px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.05);
    }
}

/* 移动端启动界面适配 */
@media (max-width: 768px) {
    .start-heart {
        font-size: 80px;
        margin-bottom: 20px;
    }
    
    .start-text {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .start-hint {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .start-heart {
        font-size: 60px;
        margin-bottom: 15px;
    }
    
    .start-text {
        font-size: 24px;
        margin-bottom: 6px;
    }
    
    .start-hint {
        font-size: 14px;
    }
}

.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 40px 20px;
    z-index: 1;
}

.cards-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    min-height: 800px;
}

.cards-wrapper::before {
    content: '❤️';
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 800px;
    opacity: 0.02;
    pointer-events: none;
    z-index: 0;
    filter: grayscale(0.3);
}

.card {
    position: absolute;
    width: 280px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 0 1px rgba(0, 0, 0, 0.1);
    will-change: transform, left, top, opacity, filter;
    z-index: 10;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.card:hover {
    transform: translateY(-8px) scale(1.05) !important;
    box-shadow: 
        0 16px 32px rgba(0, 0, 0, 0.16),
        0 4px 16px rgba(0, 0, 0, 0.12),
        0 0 2px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mac-buttons {
    display: flex;
    gap: 6px;
    margin-right: 12px;
}

.mac-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.2s;
}

.mac-btn.red {
    background: linear-gradient(135deg, #ff5f57 0%, #ff3b30 100%);
    box-shadow: 0 1px 3px rgba(255, 95, 87, 0.4);
}

.mac-btn.yellow {
    background: linear-gradient(135deg, #ffbd2e 0%, #ffa500 100%);
    box-shadow: 0 1px 3px rgba(255, 189, 46, 0.4);
}

.mac-btn.green {
    background: linear-gradient(135deg, #28ca42 0%, #00c853 100%);
    box-shadow: 0 1px 3px rgba(40, 202, 66, 0.4);
}

.card:hover .mac-btn {
    transform: scale(1.1);
}

.card-title {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    flex: 1;
}

.card-body {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.card-content {
    flex: 1;
}

.user-name {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
    font-weight: 500;
}

.card-text {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    font-weight: 500;
}

/* 不同颜色的卡片背景 */
.card.color-1 { background: linear-gradient(135deg, #FFE5E5 0%, #FFF0F0 100%); }
.card.color-2 { background: linear-gradient(135deg, #FFF4E5 0%, #FFF8F0 100%); }
.card.color-3 { background: linear-gradient(135deg, #FFFFE5 0%, #FFFFF0 100%); }
.card.color-4 { background: linear-gradient(135deg, #E5FFE5 0%, #F0FFF0 100%); }
.card.color-5 { background: linear-gradient(135deg, #E5F4FF 0%, #F0F8FF 100%); }
.card.color-6 { background: linear-gradient(135deg, #F0E5FF 0%, #F8F0FF 100%); }
.card.color-7 { background: linear-gradient(135deg, #FFE5F0 0%, #FFF0F8 100%); }
.card.color-8 { background: linear-gradient(135deg, #E5FFFF 0%, #F0FFFF 100%); }

body::after {
    content: '';
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    animation: fadeInTip 1s ease-in-out 2s forwards;
}

@keyframes fadeInTip {
    to {
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        background: #fafafa;
    }
    
    .container {
        padding: 20px 10px;
    }
    
    .cards-wrapper::before {
        font-size: 400px;
        opacity: 0.015;
    }
    
    .card {
        width: 160px;
        padding: 12px;
        border-radius: 12px;
    }
    
    .card-header {
        margin-bottom: 8px;
        padding-bottom: 8px;
    }
    
    .mac-buttons {
        gap: 4px;
        margin-right: 8px;
    }
    
    .mac-btn {
        width: 8px;
        height: 8px;
    }
    
    .card-title {
        font-size: 11px;
    }
    
    .card-body {
        gap: 8px;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
        border-width: 1.5px;
    }
    
    .user-name {
        font-size: 10px;
        margin-bottom: 4px;
    }
    
    .card-text {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .card:hover {
        transform: translateY(-4px) scale(1.03) !important;
    }
    
    body::after {
        bottom: 10px;
        right: 10px;
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* 小屏手机优化 */
@media (max-width: 480px) {
    body {
        background: #fafafa;
    }
    
    .card {
        width: 140px;
        padding: 10px;
    }
    
    .card-text {
        font-size: 12px;
    }
    
    .user-avatar {
        width: 24px;
        height: 24px;
    }
    
    .user-name {
        font-size: 9px;
    }
    
    .cards-wrapper::before {
        font-size: 300px;
        opacity: 0.01;
    }
}

/* 横屏适配 */
@media (max-width: 768px) and (orientation: landscape) {
    .cards-wrapper::before {
        font-size: 350px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .card:active {
        transform: scale(0.95) !important;
        transition: transform 0.1s ease !important;
    }
    
    .mac-btn {
        pointer-events: none;
    }
}

